package com.chianghao.rock.admin.system.route.dto;

import javax.validation.constraints.NotNull;

import com.chianghao.core.web.ValidatedGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description="路由信息")
public class RouteDto {

	
	
	@ApiModelProperty("主键")
	@NotNull(groups = {ValidatedGroup.Modify.class},message = "error:id,not.null")
	private Long id;

	@ApiModelProperty("父主键")
	private Long parentId;
	
	@ApiModelProperty("排序")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:sort,not.null")
	private Integer sort;
	
	@ApiModelProperty("编号")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:code,not.null")
	private String code;

	@ApiModelProperty("名称")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:name,not.null")
	private String  name;

	@ApiModelProperty("路由")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:route,not.null")
    private String  route;
	
	@ApiModelProperty("图标")
	private String icon;
	
	@ApiModelProperty("语言键")
	private String languateKey;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoute() {
		return route;
	}

	public void setRoute(String route) {
		this.route = route;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getLanguateKey() {
		return languateKey;
	}

	public void setLanguateKey(String languateKey) {
		this.languateKey = languateKey;
	}
	
	
}
